package com.cass.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 学生实体表
 * @author wangyou
 * @TableName student
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "student", description = "学生实体表")
public class student implements Serializable {
    /**
     *
     */
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * id主键
     */
    @Schema(name = "id",description="主键" )
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 姓名
     */
    @Schema(name = "name",description="姓名")
    private String name;
    /**
     * 学号
     */
    @Schema(name = "studentNumber",description="学号")
    private String studentNumber;
    /**
     * 密码
     */
    @Schema(name = "password" ,description="密码")
    private String password;
    /**
     * 电话
     */
    @Schema(name = "telephone",description="电话")
    private String telephone;
    /**
     * 邮箱
     */
    @Schema(name = "mail",description="邮箱")
    private String mail;
    /**
     * 创建时间
     */
    @Schema(name = "creationTime",description="创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime creationTime;
    /**
     * 更新时间
     */
    @Schema(name = "turnoverTime",description="更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime turnoverTime;

}
